package com.itheima_16;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class ReaderFileDemo {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("/Users/oscar/Desktop/HQWork/学习资料/code/mySimpleDateFormat/CopyArray.txt"));

        ArrayList<String> arrayList = new ArrayList<String>();

        String line;
        while ((line = br.readLine()) != null) {
            arrayList.add(line);
        }

        br.close();

        for (String a : arrayList) {
            System.out.println(a);
        }
    }
}
